package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品对象 mall_product
 * 
 * @author ruoyi
 * @date 2020-05-20
 */
public class MallProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long productId;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 属性集合，以json形式 */
    @Excel(name = "属性集合，以json形式")
    private String propertys;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 标题 */
    @Excel(name = "标题")
    private String subtitle;

    /** 产品封面 */
    @Excel(name = "产品封面")
    private String coverImg;

    /** 产品详情 */
    @Excel(name = "产品详情")
    private String content;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 0：未上架 1为上架 */
    @Excel(name = "0：未上架 1为上架")
    private Integer status;

    /** 销售量 */
    @Excel(name = "销售量")
    private Long sales;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 会员优惠价 */
    @Excel(name = "会员优惠价")
    private Double memberShipPrice;
    private MallCategory mallCategory;

    public MallCategory getMallCategory() {
        return mallCategory;
    }

    public void setMallCategory(MallCategory mallCategory) {
        this.mallCategory = mallCategory;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setPropertys(String propertys) 
    {
        this.propertys = propertys;
    }

    public String getPropertys() 
    {
        return propertys;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setCoverImg(String coverImg) 
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg() 
    {
        return coverImg;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSales(Long sales) 
    {
        this.sales = sales;
    }

    public Long getSales() 
    {
        return sales;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setMemberShipPrice(Double memberShipPrice) 
    {
        this.memberShipPrice = memberShipPrice;
    }

    public Double getMemberShipPrice() 
    {
        return memberShipPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("categoryId", getCategoryId())
            .append("propertys", getPropertys())
            .append("productName", getProductName())
            .append("subtitle", getSubtitle())
            .append("coverImg", getCoverImg())
            .append("content", getContent())
            .append("stock", getStock())
            .append("status", getStatus())
            .append("sales", getSales())
            .append("price", getPrice())
            .append("memberShipPrice", getMemberShipPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
